package bancosys.tec.rtm.impl.diagnostician;

import java.net.InetAddress;

import bancosys.tec.rtm.diagnostician.AbstractDiagnostician;
import bancosys.tec.rtm.diagnostician.DiagnosisBean;

/**
 * Diagnosticador do IP que a virtual machine está rodando.
 * 
 * @author Evaristo
 * @version $Id:$ <b>Created on: </b> 13/03/2007
 */
public class HostAddressDiagnostician extends AbstractDiagnostician {

    /**
     * @return name.
     */
    public String getName() {
        return "IP da Máquina Local";
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected boolean fillDiagnosisBean(DiagnosisBean bean) throws Exception {
        bean.addDescription("IP: " + InetAddress.getLocalHost().getHostAddress());
        return true;
    }

}